Path: api/v1/stock/{stockno}/qtybylocations
This API is JSON:API compliant.
This endpoint supports the following methods:
GET
The resource type for this endpoint is StockQtyByLocations
The identifier is stockNo-locationNo
The StockQtyByLocations resource type attributes are as follows:
Path: api/v1/stock/2/qtybylocations
Response:
{
"data": [
{
"id": "2-1",
"type": "StockQtyByLocations",
"attributes": {
"locationNo": 1,
"locationCode": "ACT",
"onHand": 152.0000,
"comitted": 109.0000,
"onTransfer": 0.0,
"reserved": 5.0000,
"onPO": 46.0000,
"available": 43.0000,
"backOrder": 0.0000
}
},
{
"id": "2-2",
"type": "StockQtyByLocations",
"attributes": {
"locationNo": 2,
"locationCode": "nsw",
"onHand": 12.0000,
"comitted": 10.0000,
"onTransfer": 0.0,
"reserved": 0.0000,
"onPO": 0.0000,
"available": 2.0000,
"backOrder": 0.0000
}
}
]
}
Path: api/v1/stock/2/qtybylocations/2-2
Response:
{
"data": {
"id": "2-2",
"type": "StockQtyByLocations",
"attributes": {
"locationNo": 2,
"locationCode": "nsw",
"onHand": 12.0000,
"comitted": 10.0000,
"onTransfer": 0.0,
"reserved": 0.0000,
"onPO": 0.0000,
"available": 2.0000,
"backOrder": 0.0000
}
}
}